#ifndef __ALLTYPE__HPP__
#define __ALLTYPE__HPP__
#include "napi/native_api.h"
#include "hilog/log.h"
#include <string>
#include <queue>
#include <map>

#define BUFF_SIZE 1024
#define DOUBLE_BUFF_SIZE 2048

#undef LOG_TAG
#define LOG_TAG "ohos_nodejs_demo"
#define LOGERROR(status) OH_LOG_INFO(LOG_APP, "%{public}s %{public}d fail, status: %{public}d", __FILE__, __LINE__, status)
#define LOGINFO(...) OH_LOG_INFO(LOG_APP, __VA_ARGS__)

#define STATUS_CHECK(status) if(status != napi_ok) { LOGERROR(status); }

#endif